<?php echo form_tag_for($accountOwnerForm,$accountOwnerForm->getUrl(),array('id'=>'formAccountOwner',)); ?>
<?php if((! $accountOwnerForm->isValid())&&($accountOwnerForm->isBound())):?>
  <ul class="error_list"><li>Errors on owner form</ul>
    <?php echo $accountOwnerForm->renderGlobalErrors()?>
<?php endif;?>
<?php if(! $accountOwnerForm->isNew()):?>
<div style="vertical-align:top;">
  <div class="separator">
    Reports: 
  </div>
</div>
<?php endif;?>
<div class="infobox1" style="height:150px;">
   <?php include_partial('owner_fields',array('accountOwnerForm'=>$accountOwnerForm,))?>
</div>
<div class="form_buttons">
  <input type="submit" value="Save" />
  <?php if(! $accountOwnerForm->isNew()):?>
    | <input type="button" value="Delete" id="buttonDeleteAccountOwner"/>
  <?php endif;?>
  | <input type="button" value="Reset" id="buttonResetAccountOwner" />
</div>
</form>


<script language="javascript">
  $(document).ready(
  function(){
  accountOwnerSetupForm();
  accountOwnerSetupResetButton('<?php echo $accountOwnerForm->getResetUrl($contact); ?>','<?php echo $accountOwnerForm->isNew()?'Reset form for new Owner account?':'Reset Owner account for "'.$contact->getListName().'"?'?>');
  <?php if(! $accountOwnerForm->isNew()):?>
    accountOwnerSetupDeleteButton('<?php echo $accountOwnerForm->getDeleteUrl(); ?>','<?php echo 'Delete Owner account for "'.$contact->getListName().'"?'?>');
  <?php endif;?>
  });
</script>